package com.facebook.imagepipeline.common;

import java.util.Locale;
import javax.annotation.concurrent.Immutable;

@Immutable
public class ImageDecodeOptions
{
  private static final ImageDecodeOptions DEFAULTS = newBuilder().build();
  public final int backgroundColor;
  public final boolean decodeAllFrames;
  public final boolean decodePreviewFrame;
  public final boolean forceOldAnimationCode;
  public final boolean forceStaticImage;
  public final int minDecodeIntervalMs;
  public final boolean useLastFrameForPreview;

  public ImageDecodeOptions(ImageDecodeOptionsBuilder paramImageDecodeOptionsBuilder)
  {
    this.minDecodeIntervalMs = paramImageDecodeOptionsBuilder.getMinDecodeIntervalMs();
    this.backgroundColor = paramImageDecodeOptionsBuilder.getBackgroundColor();
    this.forceOldAnimationCode = paramImageDecodeOptionsBuilder.getForceOldAnimationCode();
    this.decodePreviewFrame = paramImageDecodeOptionsBuilder.getDecodePreviewFrame();
    this.useLastFrameForPreview = paramImageDecodeOptionsBuilder.getUseLastFrameForPreview();
    this.decodeAllFrames = paramImageDecodeOptionsBuilder.getDecodeAllFrames();
    this.forceStaticImage = paramImageDecodeOptionsBuilder.getForceStaticImage();
  }

  public static ImageDecodeOptions defaults()
  {
    return DEFAULTS;
  }

  public static ImageDecodeOptionsBuilder newBuilder()
  {
    return new ImageDecodeOptionsBuilder();
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject);
    ImageDecodeOptions localImageDecodeOptions;
    do
    {
      return true;
      if ((paramObject == null) || (getClass() != paramObject.getClass()))
        return false;
      localImageDecodeOptions = (ImageDecodeOptions)paramObject;
      if (this.backgroundColor != localImageDecodeOptions.backgroundColor)
        return false;
      if (this.forceOldAnimationCode != localImageDecodeOptions.forceOldAnimationCode)
        return false;
      if (this.decodePreviewFrame != localImageDecodeOptions.decodePreviewFrame)
        return false;
      if (this.useLastFrameForPreview != localImageDecodeOptions.useLastFrameForPreview)
        return false;
      if (this.decodeAllFrames != localImageDecodeOptions.decodeAllFrames)
        return false;
    }
    while (this.forceStaticImage == localImageDecodeOptions.forceStaticImage);
    return false;
  }

  public int hashCode()
  {
    int i = 31 * this.backgroundColor;
    if (this.forceOldAnimationCode);
    for (int j = 1; ; j = 0)
      return i + j;
  }

  public String toString()
  {
    Locale localLocale = (Locale)null;
    Object[] arrayOfObject = new Object[7];
    arrayOfObject[0] = Integer.valueOf(this.minDecodeIntervalMs);
    arrayOfObject[1] = Integer.valueOf(this.backgroundColor);
    arrayOfObject[2] = Boolean.valueOf(this.forceOldAnimationCode);
    arrayOfObject[3] = Boolean.valueOf(this.decodePreviewFrame);
    arrayOfObject[4] = Boolean.valueOf(this.useLastFrameForPreview);
    arrayOfObject[5] = Boolean.valueOf(this.decodeAllFrames);
    arrayOfObject[6] = Boolean.valueOf(this.forceStaticImage);
    return String.format(localLocale, "%d-%d-%b-%b-%b-%b-%b", arrayOfObject);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.facebook.imagepipeline.common.ImageDecodeOptions
 * JD-Core Version:    0.6.2
 */